package com.qfedu.service;

import com.qfedu.exception.UnkownUsernameException;
import com.qfedu.pojo.User;

public interface UserService {

    /**
     * 登录
     * @return
     */
    User login(String username,String password) throws Exception;


    /**
     * 注册
     * @param user
     * @return
     */
    int rgister(User user);
}
